/* 认证弹窗样式 */
@keyframes authModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal-overlay {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.auth-modal-overlay[style*="display:none"] {
  display: none !important;
}

.auth-modal {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .2);
  position: relative;
  animation: authModalSlideIn .3s ease;
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all .2s;
}

.auth-modal-close:hover {
  background: #f5f5f5 !important;
  color: var(--ink) !important;
}

.auth-form {
  padding: 32px 24px;
}

.auth-form h2 {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e6eee6;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color .2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(44, 163, 106, .1);
}

.form-group input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.btn-auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #111;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  margin-top: 8px;
}

.btn-auth-submit:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 163, 106, .3);
}

.btn-auth-submit:active {
  transform: translateY(0);
}

.btn-auth-submit:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.auth-switch-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch-link:hover {
  text-decoration: underline !important;
}

@media (max-width: 575.98px) {
  .auth-modal {
    width: 95% !important;
    border-radius: 12px !important;
  }
  
  .auth-form {
    padding: 24px 20px !important;
  }
  
  .auth-form h2 {
    font-size: 20px !important;
  }
}

